package com.mj.mafeed.config;

import com.mj.mafeed.config.Constants;

import android.annotation.SuppressLint;

/**
 *  配置常量
 * @author zhaominglei
 * @date 2014-12-3
 * 
 */
@SuppressLint("SdCardPath")
public class Constants {
	//应用名称
	public static String APP_NAME = "美傲饲料";
	//包名
	public static String PACKAGE_NAMES = "com.mj.mafeed";
	//数据库路径
	public static String FILE_PATH = "/data/data/" + PACKAGE_NAMES + "/databases";
	//数据库名称
	public static String DB_NAME = "mafeed.db";
	//数据库版本
	public static int DB_VERSION = 1;
	//货币符号
	public static String CURRENCY_SYMBOL= "￥";
	//api服务器地址
	public static String SERVER_URL = "http://10.0.0.112:8082"; //本地测试
//	public static String SERVER_URL = "http://118.126.13.114";
	public static String SERVER_DOWNLOAD_URL = SERVER_URL+"/download.shtml?filepath=";
	//默认每页记录数
	public static final int DEFAULT_PAGE_SIZE = 10; 
	//手机端首页
	public static String MOBILEINDEX_ALL_URL = Constants.SERVER_URL + "/api/mobileIndex/all.shtml";
	//商品分类列表
	public static String PRODUCTCATEGORY_ALL_URL = Constants.SERVER_URL + "/api/productCategory/all.shtml";
	//资讯列表
	public static String FORUMTOPIC_LIST_URL = Constants.SERVER_URL + "/api/forumTopic/list.shtml";
	//资讯列表 添加
	public static String FORUMTOPIC_SAVE_URL = Constants.SERVER_URL + "/api/forumTopic/save.shtml";
	//资讯列表 赞
	public static String FORUMTOPIC_PRAISE_URL = Constants.SERVER_URL + "/api/forumTopic/praise.shtml";
	//资讯列表 评论
	public static String FORUMTOPIC_COMMENT_URL = Constants.SERVER_URL + "/api/forumTopic/comment.shtml";
	//同步购物车
	public static String MEMBER_CART_SYNC_URL = Constants.SERVER_URL + "/api/member/cart/sync.shtml";
	//更新购物车
	public static String MEMBER_CART_UPDATE_URL = Constants.SERVER_URL + "/api/member/cart/update.shtml";
	//删除购物车
	public static String MEMBER_CART_DELETE_URL = Constants.SERVER_URL + "/api/member/cart/delete.shtml";
	//注册
	public static String MEMBER_REGISTER_URL = Constants.SERVER_URL + "/api/member/register.shtml";
	//发送短信
	public static String SENDMSG_URL = Constants.SERVER_URL + "/sendMsg.shtml";
	//找回密码
	public static String MEMBER_FINDPWD_URL = Constants.SERVER_URL + "/api/member/findpwd.shtml";
	//登录
	public static String MEMBER_LOGIN_URL = Constants.SERVER_URL + "/api/member/login.shtml";
	//更新个人资料
	public static String MEMBER_PROFILE_UPDATE_URL = Constants.SERVER_URL + "/api/member/update.shtml";
	//修改密码
	public static String MEMBER_PASSWORD_UPDATE_URL = Constants.SERVER_URL + "/api/member/updatepass.shtml";
	//我的订单
	public static String MEMBER_ORDER_URL = Constants.SERVER_URL + "/api/member/order.shtml";
	//提交订单
	public static String MEMBER_ORDER_SUBMIT_URL = Constants.SERVER_URL + "/api/member/order/create.shtml";
	//我的关注
	public static String MEMBER_FAVORITE_URL = Constants.SERVER_URL + "/api/member/favorite.shtml";
	//加关注
	public static String MEMBER_FAVORITE_ADD_URL = Constants.SERVER_URL + "/api/member/favorite/add.shtml";
	//取消关注
	public static String MEMBER_FAVORITE_DELETE_URL = Constants.SERVER_URL + "/api/member/favorite/delete.shtml";
	//校验是否已关注
	public static String MEMBER_FAVORITE_CHECK_URL = Constants.SERVER_URL + "/api/member/favorite/check.shtml";
	//我的预约
	public static String MEMBER_BOOKLOG_URL = Constants.SERVER_URL + "/api/member/bookLog.shtml";
	//预约
	public static String MEMBER_BOOKLOG_BOOK_URL = Constants.SERVER_URL + "/api/bookLog/book.shtml";
	//收货地址
	public static String MEMBER_RECEIVER_URL = Constants.SERVER_URL + "/api/member/receiver.shtml";
	//添加收货地址
	public static String MEMBER_RECEIVER_ADD_URL = Constants.SERVER_URL + "/api/member/receiver/add.shtml";
	//获取默认收货地址
	public static String MEMBER_DEFAULT_RECEIVER_URL = Constants.SERVER_URL + "/api/member/receiver/getdefault.shtml";
	//更新收货地址
	public static String MEMBER_RECEIVER_UPDATE_URL = Constants.SERVER_URL + "/api/member/receiver/update.shtml";
	//商品列表
	public static String PRODUCT_ALL_URL = Constants.SERVER_URL + "/api/product/all.shtml";
	//商品列表
	public static String PRODUCT_LIST_URL = Constants.SERVER_URL + "/api/product/list.shtml";
	//商品详情
	public static String PRODUCT_DETAIL_URL = Constants.SERVER_URL + "/api/product/detail.shtml";
}
